package com.vimae.android.toneranger;

public class Translator {
	public static int translate(char character) {
		int r;
		switch (character) {
		case 'a':
			r = Keys.A;
			break;
		case 'b':
			r = Keys.B;
			break;
		case 'c':
			r = Keys.C;
			break;
		case 'd':
			r = Keys.D;
			break;
		case 'e':
			r = Keys.E;
			break;
		case 'f':
			r = Keys.F;
			break;
		case 'g':
			r = Keys.G;
			break;
		case 'h':
			r = Keys.H;
			break;
		case 'i':
			r = Keys.I;
			break;
		case 'j':
			r = Keys.J;
			break;
		case 'k':
			r = Keys.K;
			break;
		case 'l':
			r = Keys.L;
			break;
		case 'm':
			r = Keys.M;
			break;
		case 'n':
			r = Keys.N;
			break;
		case 'o':
			r = Keys.O;
			break;
		case 'p':
			r = Keys.P;
			break;
		case 'q':
			r = Keys.Q;
			break;
		case 'r':
			r = Keys.R;
			break;
		case 's':
			r = Keys.S;
			break;
		case 't':
			r = Keys.T;
			break;
		case 'u':
			r = Keys.U;
			break;
		case 'v':
			r = Keys.V;
			break;
		case 'w':
			r = Keys.W;
			break;
		case 'x':
			r = Keys.X;
			break;
		case 'y':
			r = Keys.Y;
			break;
		case 'z':
			r = Keys.Z;
			break;
		case '1':
			r = Keys.One;
			break;
		case '2':
			r = Keys.Two;
			break;
		case '3':
			r = Keys.Three;
			break;
		case '4':
			r = Keys.Four;
			break;
		case '5':
			r = Keys.Five;
			break;
		case '6':
			r = Keys.Six;
			break;
		case '7':
			r = Keys.Seven;
			break;
		case '8':
			r = Keys.Eight;
			break;
		case '9': 
			r = Keys.Nine;
			break;
		case '0':
			r = Keys.Zero;
			break;
		case '*':
			r = Keys.SpecialKeys.Star;
			break;
		case '#':
			r = Keys.SpecialKeys.Pound;
			break;
		default:
			r = Keys.SpecialKeys.SUP_DIAL;
			break;
		}
		return r;
	}
}